package com.cy.pj.sys.controller;

import com.cy.pj.sys.pojo.Logs;
import com.cy.pj.sys.service.ServiceLogs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ControllerLogs {
    @Autowired
    private ServiceLogs serviceLogs;
    @GetMapping("doFindAllLogs")
    public List<Logs> doFindAllLogs(){
        List<Logs> list = serviceLogs.findLogs();
        return list;
    }
}
